package com.example.mytestdemo.extensions

import android.content.pm.PackageManager.PERMISSION_DENIED

class PermissionResult(val isPermissionsGranted: Boolean) {

//    val isPermissionsGranted: Boolean get() = _isPermissionsGranted
//    val deniedPermissions: MutableList<String> get() = _deniedPermissions
//
//    private var _isPermissionsGranted: Boolean = true
//    private var _deniedPermissions: MutableList<String> = mutableListOf()
//
//    init {
//        grantResults.forEachIndexed { index, result ->
//            if (result == PERMISSION_DENIED) {
//                _isPermissionsGranted = false
//                _deniedPermissions.add(permissions[index])
//            }
//        }
//    }

}